<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title></head>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
 <caption class="captionTable"> THÔNG TIN GIỎ HÀNG </caption>
  <tr>
    <td colspan="2" align="center">
	<?php if($num=="0"){ ?>
        <b><br />
         Giỏ hàng của bạn hiện đang trống</b>
      <hr size='1' width='70%' />
        <br />
        <a href="index.php">
        		<!--<img src="images/buy-1.gif" border="0" />-->
                <input type="button" class="button" value="Tiếp tục mua hàng"/>
        </a>
        
        <br />
        <br />
        <?php }else{ ?>
        
          <table width="100%" border="0" cellspacing="2" cellpadding="2">
            <tr>
              <td><?php while($row=mysql_fetch_row($cart)){?>
                  <table width="100%" border="0" cellspacing="4" cellpadding="4">
                 
                    <tr>
                      <td width="21%" align="center" valign="top">
                     <a href=index.php?page=product&&act=detail&&masp=<?php echo $row[0];?>><img src="images/sanpham/<?php echo $row[2];?>" border="0"></a>
                      </td>
                      
                  <form id="form1" name="form1" method="post" action="index.php?page=cart&&act=update">
                  <input name="masp" type="hidden" id="masp" value="<?php echo $row[0];?>" />
                     <td colspan="2" align="left" valign="top">
                           <a href=index.php?page=product&&act=detail&&masp=<?php echo $row[0]; ?>><b><?php echo $row[1]; ?></b></a><br>
                           <b> Giá: </b>  <?php echo $row[3]."  VND"; ?><br>
                           <b>Số lượng: </b>	
                           <input name="soluong" type="text" value="<?php echo $row[4];?>" size="5">
                      </td>
                      
                      <td width="23%" align="left" valign="top">
                     	   <b>Thành tiền: </b><?php echo $row[5]." VND";?>
                      </td>
                      <td width="8%" align="left" valign="top">
                    <!--<input name="image" type="image" src="images/update.gif" width="68" height="17" border="0" value="update"/>-->
                        <input type="button" class="button" value="Update">
                      </td>  
                  </form>
                      <td width="7%" align="left" valign="top">
                      		<a href="index.php?page=cart&&act=delsp&&masp=<?php echo $row[0]?>">
                            <!--<img src="images/xoa.gif" border="0" width="39" height="17" />-->
                            <input type="button" class="button" value="Delete">
                            </a>
                      </td>
                    </tr>
                  </table>
			    
                <hr size="1" width="90%" />
                  <?php }?></td>
            </tr>
            <tr>
              <td><table width="100%" border="0" cellspacing="0" cellpadding="4">
                  <tr>
                    <td width="46%" align="left" valign="bottom">&nbsp;&nbsp;
                        <a href="index.php?page=cart&&act=delcart">
                           <!-- <img src="images/xoa gio hang.gif" width="110" height="17" border="0" />-->
                           <input type="button" class="button" value="Xóa tất cả giỏ hàng">
                        </a>
                    </td>
                    <td width="54%" valign="bottom"><div align="left">
                        <b>Tổng số lượng sản phẩm:&nbsp;<font color="#FF6600"><?php echo $rows[tong];?></font></b><br/>
                        <b>Tổng tiền thanh toán: &nbsp;<font color="#FF6600"><?php echo $rows[tongtien]." VND";?></font></b><br/>
                    </td>
                  </tr>
                  <tr>
                   <!-- <td align="left" valign="bottom">&nbsp;&nbsp;<a href="index.php"><img src="images/buy-1.gif" width="110" height="17" border="0" /></a></td> -->
                   <td align="left" valign="bottom">&nbsp;&nbsp;
                   		<a href="index.php">
                   			<input type="button" class="button" value="Tiếp tục mua hàng " />
                        </a>
                   </td>
                   <td valign="bottom"><div align="right"><a href="index.php?page=liquidate&&act=info">
                   		<input type="button" class="button" value="Thanh toán">
                   </a></div></td>
                   <!-- <td valign="bottom"><div align="right"><a href="index.php?page=liquidate&&act=info"><img src="images/thanhtoan.gif" width="68" height="17" border="0" /></a>&nbsp;&nbsp;</div></td> -->
                  </tr>
              </table></td>
            </tr>
          </table> 
        <?php }?>
        
     </td>
  </tr>
</table>

</body>
</html>
